package binary;

public class ComplementDemo {
    public static void main(String[] args) {
        int max = Integer.MAX_VALUE;
        int min = Integer.MIN_VALUE;
        System.out.println(Integer.toBinaryString(max));
        System.out.println(Integer.toBinaryString(min));
        System.out.println(Integer.toBinaryString(-1));
        long maxl=Long.MAX_VALUE;
        long minl=Long.MIN_VALUE;
        System.out.println(Long.toBinaryString(maxl));
        System.out.println(Long.toBinaryString(minl));
        int n=-45;
        System.out.println(Integer.toBinaryString(n));
    }
}
